<div class="col-12 col-lg-8" id="main" role="main">
    {{range .list}}
        <article class="post Card typo indexCard" itemscope itemtype="http://schema.org/BlogPosting">
            <div class="post-box paddingall">
                <div class="post-title-box">
                    <h4 class="post-title" itemprop="name headline">
                        {{if eq $.rewrite "true"}}
                            <a itemprop="url" href="/{{$.rule}}/{{.Name}}.html">{{.Title}}</a>
                        {{else}}
                            <a itemprop="url" href="/{{$.rule}}/{{.Name}}">{{.Title}}</a>
                        {{end}}
                    </h4>
                </div>
                <div class="post-content" itemprop="articleBody">
                    {{with $summary := markdown .Summary}}
                        {{str2html $summary }}
                    {{end}}
                </div>
            </div>
            <div class="info">
                <ul class="post-meta">
                    <li><i class="fa fa-calendar" aria-hidden="true">&nbsp; </i>
                        <time datetime="{{tsc .Renew false}}" itemprop="datePublished">{{tsc .Renew false}}</time>
                    </li>
                    <li><i class="fa fa-book fa-fw" aria-hidden="true">&nbsp; </i><a
                                href="/category/{{category .Cid "key"}}">{{category .Cid "name"}}</a></li>
                    <li itemprop="interactionCount"><i class="fa fa-comments-o" aria-hidden="true">&nbsp; </i>
                        {{if eq $.rewrite "true"}}
                            <a itemprop="discussionUrl" href="/{{$.rule}}/{{.Name}}.html#comments">{{comment .Id}} 条评论</a>
                        {{else}}
                            <a itemprop="discussionUrl" href="/{{$.rule}}/{{.Name}}#comments">{{comment .Id}} 条评论</a>
                        {{end}}
                    </li>
                </ul>
            </div>
        </article>
    {{end}}
    {{if gt .paging.PageCount 1}}
        <ol class="page-navigator">
            {{if eq $.page 1}}
                <li class="next"><a href="?page={{calc $.page 1 "+"}}" class="next">下一页 »</a></li>
            {{else if eq $.page $.paging.PageCount}}
                <li class="prev"><a href="?page={{calc $.page 1 "-"}}" class="prev">« 上一页</a></li>
            {{else}}
                <li class="prev"><a href="?page={{calc $.page 1 "-"}}" class="prev">« 上一页</a></li>
                <li class="next"><a href="?page={{calc $.page 1 "+"}}" class="next">下一页 »</a></li>
            {{end}}
        </ol>
    {{end}}
</div>

{{template "QuietV1/sidebar.html" .}}

